home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / KSLIB11.ARJ / WN.H < prev    next >
Text File  |  1991-10-14  |  1KB  |  59 lines

  1. /*
  2. *    WN.H - Header file for WN.C
  3. */
  4.  
  5. #define SINGLE    0x0001
  6. #define DOUBLE    0x0002
  7. #define CURSON    0x0004
  8. #define POPUP    0x0008
  9.  
  10. #define WNCHECKINIT if (!WNinitialised) WNinit()
  11.  
  12. #define BKGR(x) (x<<4)
  13. #define WNclear() clrscr()
  14. #define WNgotoxy(x,y) gotoxy(x,y)
  15. #define WNgetx wherex
  16. #define WNgety wherey
  17. #define WNputs cputs
  18. #define WNprintf cprintf
  19.  
  20. struct WNwin {
  21.     int        x;
  22.     int        y;
  23.     int        c;
  24.     int        curs;
  25.     int        oulx,ulx;
  26.     int        ouly,uly;
  27.     int        olrx,lrx;
  28.     int        olry,lry;
  29.     int        attr;
  30.     char    *buf;
  31.     struct    WNwin    *last;
  32.     struct    WNwin    *next;
  33. };
  34.  
  35. typedef struct WNwin WNwin;
  36.  
  37. void        WNsavecurs(void);
  38. void        WNloadcurs(void);
  39. void        WNputc(char);
  40. void        WNsavedos(void);
  41. void        WNloaddos(void);
  42. WNwin *        WNopen(int,int,int,int,int,int,char *);
  43. WNwin *        WNclose(void);
  44. void        WNinit(void);
  45. void        WNend(void);
  46. WNwin *        WNselect(WNwin *);
  47. void        WNsave(void);
  48. void        WNload(void);
  49. void        WNbox(int,int,int,int,int);
  50. void        WNmessage(WNwin *,int,int,int,char *);
  51. void        WNdisplay(int,int,char *);
  52. int            WNcolor(int);
  53. void        WNfore(int);
  54. void        WNback(int);
  55. void        WNcursor(int);
  56. int            WNgcursor(void);
  57. void        WNhline(int,int,int,int);
  58. void        WNvline(int,int,int,int);
  59.